package ca.etsmtl.log730.projet2.connectors.msg;

import java.io.Serializable;

public class RequestReply implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -9014832654551529099L;
	private final Request request;
	protected RequestReply(Request r) {
		request = r;
	}
	public Request getRequest() {
		return request;
	}
	
	public static class Accepted extends RequestReply {

		/**
		 * 
		 */
		private static final long serialVersionUID = 8450053788432951801L;

		public Accepted(Request r) {
			super(r);
		}
		
	}
	
	public static class Denied extends RequestReply {

		/**
		 * 
		 */
		private static final long serialVersionUID = 3046025898576270991L;

		public Denied(Request r) {
			super(r);
		}
		
	}
}
